Sample Code
Listed here are the sample code from demo scenes in NRSDK package and code described throughout this documentation.
| Documentation | Relevant Unity Scene and Sample Code |
|---|---|
HelloMR NRKernal.NRExamples.HelloMRController NRKernal.NRExamples.DemoScenesMenu | |
| Controller Basics | Input-ControllerInfo NRKernal.NRExamples.ControllerInfoDisplayUI |
| Customize Controller UI | Input-VirtualController NRKernal.NRExamples.CustomVirtualControlerUI |
| Hand Tracking | HandTracking NRKernal.NRExamples.HandTrackingExample |
| Image Tracking | ImageTracking NRKernal.NRExamples.TrackingImageExampleController |
| Plane Detection (Tutorial) | Project code can be downloaded here |
| Depth Mesh | Meshing NRKernal.NRExamples.NRMeshingManager |
| Spatial Anchor | MappingExample NRKernal.NRExamples.LocalMapExample NRKernal.Persistence.AnchorItem NRKernal.Persistence.NRWorldAnchor NRKernal.Persistence.NRWorldAnchorStore |
HelloMRSwitchConfig (Experimental) NRKernal.NRExamples.PlaneDetector | |
RGBCamera NRKernal.NRExamples.CameraCaptureController | |
| Access RGB Camera) | RGBCamera-Record NRKernal.NRExamples.VideoCapture2LocalExample |
RGBCamera-Capture NRKernal.NRExamples.PhotoCaptureExample | |
| First Person View | FirstPersonViewStreamingCast (Experimental) NRKernal.Experimental.StreammingCast.FirstPersonStreammingCast (Experimental) |
HelloMR-ChangeMode (Experimental) NRKernal.NRExamples.ChangeModeController | |
PupilDistanceAdjustment (Experimental) NRKernal.Experimental.NRExamples.PupilDistanceAdjustment (Experimental) | |
| RenderForDistance (Experimental) | |
| Overlay-VideoPlayer (Experimental) | |
AudioStreamming (Experimental) NRKernal.Experimental.NRExamples.AudioCaptureExample (Experimental) |